<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Login page jsp</title>
    <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="/static/jquery/jquery-1.10.1.min.js" type="text/javascript"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
    <form class="col-lg-4" method="post" action="login">
        <h3 class="muted form-signin-heading">Sign in please</h3>
        <div>
            <c:if test="${not empty error}">
                <div class="alert alert-danger alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    ${error}
                </div>
            </c:if>
            <c:if test="${not empty msg}">
                <div class="alert alert-info alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                        ${msg}
                </div>
            </c:if>
        </div>
        <div class="form-group">
            <input type="text" class="form-control" placeholder="Username" name="username" value="admin">
        </div>
        <div class="form-group">
            <input type="password" class="form-control" placeholder="Password" name="password" value="123">
        </div>
        <button class="btn btn-primary" type="submit">Sign in</button>
        <hr>
        <p class="text-info">
            <small>
                Log in as <strong>admin/123</strong> or <strong>sys/123</strong><br>
            </small>
        </p>
    </form>
</div>
</body>
</html>
